<section class="pagebox" ng-controller="knowledgeEditControl" resize ng-style="resetHeight(-100,'questInfo')">
    <div class="headerLeft">
        <dl class="textOverflow">
            <a class="aClean" ng-click="goMenu()">派宝开放平台</a> >
            <a id="showDiv"  class="aClean" ng-click="changeDiv()">行业库问答<img id="showDivImg" style="width:19px;" src="resource/images/DownArrow.png"></a>
        </dl>
    </div>
    <div class="header">
        <dl class="textOverflow">
            <a id="showUserDiv" class="aClean" title="{{title}}" ng-click="changeUserDiv()"><img class="robotIcon" src={{user.imageUrl}}>{{user.nickname}}<img id="showUserImg" style="width:19px;height: auto;" src="resource/images/DownArrow.png"></a>
        </dl>
    </div>
    <div class="container" id="hideDiv">
        <div class="content"><ul class="menuRobotsList">
            <li ng-repeat="m in menus">
                <a class="aClean" ng-click="goSecondMenu(m.id)">
                    <img class="conversation_boxL menuIcon"  src="{{m.imageUrl}}">
                    <dl ng-if="'' != m.menuName" title="{{m.menuName}}">
                        <span style="color: #0088CC" ng-if="'行业库问答' != m.menuName">{{m.menuName}}</span>
                        <span style="background-color: #7EA7D8;color: white;border-radius:8px;padding: 2px 5px 2px 5px" ng-if="'行业库问答' == m.menuName">{{m.menuName}}</span>
                    </dl>
                </a>
            </li>
        </ul></div>
        <s>
            <m></m>
        </s>
    </div>
    <div class="userDiv" id="hideUserDiv"><div class="userContainer">
        <div class="content">
            <ul>
                <li class="userLi">
                    <a ng-click="goChangePassowrd()" class="aClean">修改密码</a>
                </li>
                <li class="userLi">
                    <a ng-click="logOut()" class="aClean">注销</a>
                </li>
            </ul>
        </div>
        <s>
            <m></m>
        </s>
    </div></div>
  <ng-form name="addQuestionForm">
    <section class="questionAddBox" id="questInfo">
      <dl style="text-align: center;margin-bottom: 30px;"><h4><b>编辑行业库</b></h4></dl>
      <dl><dt><b>名称：</b></dt><dd><input type="text" ng-model="baseName"/></dd></dl>
      <dl><dt><b>关联机器人：</b></dt>
        <dd style="color: white;">
            <span class="ng-scope" style="margin-right: -5px;">
          <span ng-click="checkAll()" style="display:inline-block;padding-bottom:10px;padding-right:5px;white-space:nowrap;"><input type="checkbox" id="isCheckAll"/><label ng-click="textCheckAll()">&nbsp;所有机器人</label></span>
          </span>
                <br>
          <span ng-repeat="r in robots track by $index" style="margin-right: -5px;">
                <span ng-click="checkRobot(r.serialNumber)" style="display:inline-block;border-bottom:solid 1.5px #CCCCCC;padding-top:5px;padding-bottom:5px;padding-right: 8%;white-space:nowrap;" ng-if="r.isRelated == true">
                  <input id="{{r.serialNumber}}" type="checkbox" checked="true" name="robot" value="{{r.isRelated}}"/> {{r.serialNumber}}</span>
                <span ng-click="checkRobot(r.serialNumber)" style="display:inline-block;border-bottom:solid 1.5px #CCCCCC;padding-top:5px;padding-bottom:5px;padding-right: 8%;nowrap;" ng-if="r.isRelated == false">
                  <input id="{{r.serialNumber}}" type="checkbox" name="robot" value="{{r.isRelated}}"/> {{r.serialNumber}}</span>
          </span>
        </dd><dt><b> </b></dt>
          </dl>
        <dd style="text-align: center;color: white;width: 100%;">
            <span ng-if="'0' != pageCount && '1' != pageIndex">
                  <a ng-click="goFirstPage()" class="robotsPageButton" style="color: white;">首页 </a>
                  <a ng-click="goPage(-2)" class="robotsPageButton" style="color: white;">上一页</a>
              </span>
            <span ng-if="'0' == pageCount || '1' == pageIndex" style="color: rgb(222,222,222);">
                  首页 上一页
              </span>
            {{pageIndex}}/{{pageCount}}
            <span ng-if="pageIndex != pageCount">
                  <a ng-click="goPage(0)" class="robotsPageButton" style="color: white;">下一页</a>
                  <a ng-click="goLastPage()" class="robotsPageButton" style="color: white;"> 尾页</a>
              </span>
            <span ng-if="pageIndex == pageCount" style="color: rgb(222,222,222);">
                 下一页 尾页
              </span>
            </dd>
        <section class="groupBtn">
        <button class="Btnloadding" ng-click="update()">完成</button>
        <button class="Btncanel" ui-sref="knowledgeList">返回</button>
      </section>
    </section>
  </ng-form>
</section>

